import { ref } from "vue";
import { defineStore } from "pinia";
//定义一个数据仓库
export default defineStore("nightMode",()=>{
    let isNight=ref(false);
    const changeMode=function(){
        isNight.value=!isNight.value;
    }
    return{//返回仓库数据和操作
        isNight,changeMode
    }
})